widget: Add missing callback annotation
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Apr 2020 14:08:10 +0000 (16:08 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Apr 2020 14:35:07 +0000 (16:35 +0200)
GI can only figure out the correct scope if there's a GDestroyNotify
or GAsyncReadyCallback parameter.

gtk/gtkwidget.c

index b1c9bea8bd42afe46f49d3e636830cef2c92ed4b..6486b18da5486f2bb98781c48035c35478a45c9c 100644 (file)
@@ -12343,7 +12343,7 @@ gtk_widget_class_add_action (GtkWidgetClass  *widget_class,
  * @widget_class: a #GtkWidgetClass
  * @action_name: a prefixed action name, such as "clipboard.paste"
  * @parameter_type: (nullable): the parameter type, or %NULL
- * @activate: callback to use when the action is activated
+ * @activate: (scope call): callback to use when the action is activated
  *
  * This should be called at class initialization time to specify
  * actions to be added for all instances of this class.